<%= form_remote_tag :url=>{:controller=>"info",:action=>"update_profile"},
					:loading => %{window.document.getElementById('modify_profile').innerHTML='<div align="right" style="color:#666;font-weight:bold;"><img src="/images/progress.gif"/>&nbsp;正在修改您的资料...</div>'},
					:complete => "openAlert('个人资料修改完成',200,50)"%>
<div class="solid_line"></div>
<ul>
	<li class="info_data">姓名： <span class="info_input"><%= text_field 'profile', 'name',:size=>"15",:style=>"border:0;"%></span>
	&nbsp;&nbsp;(姓名不能为空)</li>
	<li class="info_data">性别： &nbsp;男&nbsp; <%if profile.tsex -%> <%= radio_button 'profile', 'tsex', 1 , :checked=>1 %>
	&nbsp;女&nbsp; <%= radio_button 'profile', 'tsex', 0 %> <%else -%> <%= radio_button 'profile', 'tsex', 1 %>
	&nbsp;女&nbsp; <%= radio_button 'profile', 'tsex', 0, :checked=>1 %> <%end -%></li>
	<li class="info_data">生日： <%= date_select 'profile', 'tbirthday',:start_year=>1945%></li>
	<li class="info_data">工作年份： <%= select 'profile', 'texperience',1960..Time.now.year%></li>
	<li class="info_data">教育背景： <%= 
    @eudcations = Education.find(:all).map {|u| [u.name, u.id] }
    select 'profile', 'teducation_id',@eudcations%></li>
	<li class="info_data">海外经历： <%= 
    @overseas = Oversea.find(:all).map {|u| [u.name, u.id] }
    select 'profile', 'toversea_id',@overseas%></li>
</ul>
<div style="width:480px;" align="right">
<%= submit_tag " 更 新 ",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%>
&nbsp;(&nbsp;<%= link_to_remote "取消", :url=>{:controller=>"info",:action=>"hide_profile"},:update=>"modify_profile" %>&nbsp;)
<%= end_form_tag%>
</div>
<div class="solid_line"></div>
